// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   SerialPortEvent.java

package javax.comm;

import java.util.EventObject;

// Referenced classes of package javax.comm:
//            SerialPort

public class SerialPortEvent extends EventObject
{

    public int eventType;
    private boolean oldValue;
    private boolean newValue;
    public static final int DATA_AVAILABLE = 1;
    public static final int OUTPUT_BUFFER_EMPTY = 2;
    public static final int CTS = 3;
    public static final int DSR = 4;
    public static final int RI = 5;
    public static final int CD = 6;
    public static final int OE = 7;
    public static final int PE = 8;
    public static final int FE = 9;
    public static final int BI = 10;

    public SerialPortEvent(SerialPort serialport, int i, boolean flag, boolean flag1)
    {
        super(serialport);
        eventType = i;
        oldValue = oldValue;
        newValue = flag1;
    }

    public int getEventType()
    {
        return eventType;
    }

    public boolean getNewValue()
    {
        return newValue;
    }

    public boolean getOldValue()
    {
        return oldValue;
    }
}
